package com.blacktry.mapper;

import com.blacktry.entity.model.FillQuestion;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 填空题题库 Mapper 接口
 * </p>
 *
 * @author blackTry
 * @since 2021-08-10
 */
public interface FillQuestionMapper extends BaseMapper<FillQuestion> {

    @Select("select * from fill_question where id IN (select question_id from paper_manage where question_type = 2 and paper_id = #{paperId})")
    List<FillQuestion> findByIdAndType(Integer paperId);
}
